package edu.suda.xsap.mapper;

import edu.suda.xsap.entity.CourseCard;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CourseCardMapper {
    //利用两个id删除
    void delete(@Param("cardId") Integer cardId,@Param("courseId") Integer courseId);
    void save(CourseCard courseCard);
    List<CourseCard> findByCardId(Integer id);
    List<CourseCard> findByCourseId(Integer id);
    List<CourseCard> findAll();

}
